package com.aji.wineserver.service;

import com.aji.winecommon.result.PageResult;
import com.aji.winepojo.dto.WineDto;
import com.aji.winepojo.entity.ClassData;
import com.aji.winepojo.entity.IdentData;
import com.aji.winepojo.entity.Wine;
import com.aji.winepojo.vo.WineVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface WineService extends IService<Wine> {

    List<WineVo> selectCon(WineDto wineDto);

    PageResult pageQuery(WineDto wineDto, int page, int pageSize) throws IOException;

    WineVo selectById(int id);

    void deleteByIds(List<Integer> ids);



    Integer add(MultipartFile multipartFile);

    void upDate(int id, MultipartFile multipartFile, Integer idenId, String pictureUrl);

    List<ClassData> selectClassData();

    List<IdentData> selectIdentData();

    List<WineVo> listByIds(List<Integer> ids);

    void changeIdentfication(List<Integer> ids);
}
